// 整体布局样式
.echo-layout {
  .el-container {
    height: 100vh;
    width: 100%;

    .el-aside {
      background-color: var(--default-side-bar-background);
    }


    .side-bar-title {
      height: 56px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background-color: var(--default-content-background);

      .title-text {
        font-size: var(--common-font-size-14);
        color: var(--default-color);
      }
    }
  }

  .echo-container {
    background-color: var(--default-background);
    overflow-y: auto;

    .echo-container_router-enter-active {
      animation: backInLeft 0.5s;
    }

    .el-main {
      padding-top: 0;
    }



    // .animate_router-leave-active {
    //   animation: slideOutRight 0.5s;
    // }
  }

  .el-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .echo-header {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;

      .header-left {
        color: var(--default-color);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
      }

      .header-right {
        display: flex;
        gap: 20px;
      }
    }
  }

  // 侧边导航栏
  .side-bar {
    background-color: var(--default-side-bar-background);
    padding: 0 10px;
    // box-shadow: 6px 0px 18px rgba(0, 0, 0, 0.06);

    .el-aside {
      overflow-x: hidden;
    }

    .el-menu {
      // min-height: calc(100vh - 56px);
      background-color: transparent;
      border-right: 0;
      // box-shadow: 6px 0px 18px rgba(0, 0, 0, 0.06);
    }

    .el-menu-vertical-demo:not(.el-menu--collapse) {
      width: 180px;
    }

    .side-bar-title {
      height: 60px;
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 2px solid #eee;
      margin-right: 20px;
      color: var(--default-color);
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 30px;
    }

    .el-menu-item.is-active {
      background-color: var(--side-bar-item-active-background);
      color: var(--side-bar-item-active-color);
    }

    .el-menu-item {
      margin: 10px 0;
      background-color: transparent;
      border-radius: 10px;
      height: 42px;
      color: var(--default-color);

      &:hover {
        background-color: var(--side-bar-item-active-background);
      }

      &:first-child {
        margin-top: 0;
      }

      &:last-child {
        margin-bottom: 0;
      }
    }

    .side-bar-bottom {
      padding-left: 20px;
      margin: 0 10px;
      border-top: 2px solid #eee;

      div {
        height: 41px;
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--default-color);
        font-size: var(--common-font-size);
        cursor: pointer;
      }
    }
  }
}